home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
AMIGA
/
AMICUS
/
AMICUS04.ADF
/
image.ed
/
imagetools.c
< prev
next >
Wrap
C/C++ Source or Header
|
1985-10-26
|
867b
|
29 lines
/************* image.tools.c ************/
/* this file contains some tools used by the image.editor */
#include "intuall.h"
extern struct IntuiMessage *message;
extern struct Window *w;
extern USHORT class;
extern USHORT code;
extern USHORT qualifier;
extern APTR address;
extern APTR oldaddress;
waiting_for_different_gadget()
{
message = (struct IntuiMessage *)GetMsg(w->UserPort);
if (message == NULL) return(TRUE); /* yes, still waiting for
* a mouse-up event */
class = message->Class;
code = message->Code;
qualifier = message->Qualifier;
address = message->IAddress;
ReplyMsg(message);
if (class == GADGETUP) return(FALSE); /* not waiting any more */
else return(TRUE); /* yes, we are still waiting */
}